package com.example.function.integration.constant;

/**
 * @description:公共常量类
 * @className:CommonConstant
 * @author:ext.fengcheng
 * @date:2023/9/7 11:28
 */
public class CommonConstant {
    public static String SEPARATOR = "|";
    public static String COLON = "：";
    public static String MID_BAR = " - ";
    public static volatile String FILE_NAME = "";

    public static int LIST_INDEX = 0;
    public static String BIZ_DATE = "bizDate";
    public static String BIZ_TYPE = "bizType";
    public static final String LOCAL_FILE_PATH = "/export/data/huaneng";
    public static String FILE_PATH = "D:\\desktop\\fileGeneration\\lend.txt";

    // 邮件服务器
    public static String EMAIL_HOST = "mail.smtp.host";
    // 是否进行邮箱身份认证
    public static String EMAIL_SMTP_AUTH = "mail.smtp.auth";
    // 是否启用TLS加密通道
    public static String EMAIL_SMTP_STARTTLS_ENABLE = "mail.smtp.starttls.enable";
    // 收件人邮箱地址
    public static String RECEIVER_EMAIL = "receiverEmail";
    // 邮件主题
    public static String EMAIL_SUBJECT = "emailSubject";
    // 邮件正文
    public static String EMAIL_CONTENT = "emailContent";

    public static final String RES_SUCCESS_MSG = "操作成功！";
    public static final String CHECK_ERROR_MSG = "校验失败";
    public static final String BUSINESS_ERROR_MSG = "业务处理失败";
    public static final String CODE_ERROR_MSG = "代码判断错误";
    public static final String SYSTEM_ERROR_MSG = "操作失败，请稍后重试！";

    public static final String GLOBAL_EXCEPTION_MSG = "全局异常捕获";
    public static final String BUSINESS_EXCEPTION_MSG = "业务异常";
    public static final String RUNTIME_EXCEPTION_MSG = "运行时异常";
    public static final String NULL_EXCEPTION_MSG = "空指针异常";
    public static final String PARAM_EXCEPTION_MSG = "参数校验发生异常";

    /**
     * Excel导入导出功能使用的常量
     */
    public static final String XLSX = ".xlsx";
    public static final String CSV = ".csv";
    public static final String XLS = ".xls";
    public static final String ROW_MERGE = "row_merge";
    public static final String COLUMN_MERGE = "column_merge";
    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final int CELL_OTHER = 0;
    public static final int CELL_ROW_MERGE = 1;
    public static final int CELL_COLUMN_MERGE = 2;
    public static final int IMG_HEIGHT = 30;
    public static final int IMG_WIDTH = 30;
    public static final int BYTES_DEFAULT_LENGTH = 10240;
    public static final long FILE_SIZE = 10 * 1024 * 1024;

    // mapper扫描路径
    public static final String MAPPER_SCAN_PATHS = "com.example.function.integration.mapper";
}
